class Menu < ActiveRecord::Base
  validates_presence_of :link
  validates_presence_of :item
  #validate              :item_length
  
  def item_length
    (self.item.length > 16) ? self.errors.add(:item, "too long, it'll spill over.") : true
  end
end
